/*
 * TOP SECRET Copyright 2006-2015 Transsion.com All right reserved. This software is the confidential and proprietary
 * information of Transsion.com ("Confidential Information"). You shall not disclose such Confidential Information and
 * shall use it only in accordance with the terms of the license agreement you entered into with Transsion.com.
 */
package com.yunji.framework_template.orm.persistence.service;

import java.io.IOException;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * ClassName:NewsModelService <br/>
 * Date: 2018年12月28日 上午11:43:12 <br/>
 * 
 * @author fenglibin1982@163.com
 * @Blog http://blog.csdn.net/fenglibing
 * @version
 * @see
 */
@Service
public class NewsModelService {

    @Value("#{settings['system.domain']}")
    private String        systemDomain;
    private static String systemDomainStatic;

    @Value("#{settings['http.protocol']}")
    private String        httpProtocol;
    private static String httpProtocolStatic;

    @PostConstruct
    public void init() throws IOException {
        systemDomainStatic = systemDomain;
        httpProtocolStatic = httpProtocol;
    }

    public static String getSystemDomainStatic() {
        return httpProtocolStatic + "://" + systemDomainStatic;
    }
}
